package com.peng.test.api.impl2;

import com.peng.rpc.annotation.Service;
import com.peng.rpc.api.HandShakeArg;
import com.peng.rpc.api.HandShakeService;
import lombok.extern.slf4j.Slf4j;

/**
 * @author Wonderson
 * @email wpp.ds@foxmail.com
 * @date 2022/2/28 20:53
 */
@Slf4j
@Service
public class HandShakeServiceImpl2 implements HandShakeService {

    @Override
    public String greet(HandShakeArg handShakeArg) {
        log.info("真实问候to：{}", handShakeArg.getPerson());
        return handShakeArg.getHello() + ", " + handShakeArg.getPersonName() + "!";
    }

}
